<!--审核 弹窗-->
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="body-main" id="audit">
    <table class="add-table form-table">
        <tbody>
        <tr>
            <th>所属订单：</th>
            <td class="red">${restMap.scOrderNo}</td>
        </tr>
        <tr>
            <th>客户名称：</th>
            <td>${restMap.customerName}</td>
        </tr>
        <tr>
            <th>签单商务：</th>
            <td>${restMap.signUserName} ${restMap.signUserOrgName}</td>
        </tr>
        <tr>
            <th>来源事业部：</th>
            <td>${restMap.signUserDepartmentName}</td>
        </tr>
        <tr>
            <th>签单商品：</th>
            <td>${restMap.signProduction}</td>
        </tr>
        <tr>
            <th>当前已完成生产节点：</th>
            <td>${restMap.latestEndNodeName}</td>
        </tr>
        <tr>
            <th>成本价格：</th>
            <td>${restMap.qualificationOldPrice}元</td>
        </tr>
        <tr>
            <th><b>转让价格</b>：</th>
            <td><b>${restMap.qualificationNewPrice}元</b></td>
        </tr>
        </tbody>
    </table>
    <div class="popups-info">
        <table class="add-table form-table">
            <tbody>
            <tr>
                <th><span class="required">审核结果：</span></th>
                <td>
                    <select class="select-style" id="auditStatus" onchange="lower()">
                        <option value="">请选择</option>
                        <c:forEach var="a" items="${auditStatus}">
                            <option value="${a.code}">${a.name}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>
            <c:if test="${restMap.currentReviewProgression < (restMap.reviewProgression-1)}">
                <tr id="reviewer">
                    <th><span class="required">下一级审核人：</span></th>
                    <td>
                        <select class="chooseUser" id="nextReviewer"></select>
                    </td>
                </tr>
            </c:if>
            <tr>
                <th class="mb8"><span>备注：</span></th>
                <td>
                    <label class="remark-input-box">
                        <textarea class="textarea-style" rows="3" id="remark" name="remark" placeholder="500字以内"></textarea>
                    </label>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<script>
    $(function () {
        chooseUserPlug.init($('.chooseUser'), {
            width: '300px',
            url: sysInfo.basePath + '/zzsc/common/find_org_user.do',
        });

        $(document).ready(function () {
            areaLength($('#remark'),500)
        });
    });

    function lower() {
        var as = $("#auditStatus").val();
        var ra = '${rejectedAudit}';
        if (ra === as) {
            $("#reviewer").hide();
        } else {
            $("#reviewer").show();
        }
    }
</script>
